[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
AValid(oGet,aArray,[bBlock],[lEmptyAllowed]) --> true/false:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Functions:
~~~~~~~~~~
Current value Get:VarGet() is validated, if not valid the choose of valid
array values is offered to user to select the right value. Selected value is
written to Get object (Get:VarPut(...)). When testing if the Get:VarGet()
is valid, is it compared with value of expression Eval(bBlock,e), where e
is obtaining the values of aArray.

Parameter description:
~~~~~~~~~~~~~~~~~~~~~~
oGet:          clipper object of GET class
aArray:        valid items array for comparing with Get:VarGet()
bBlock:        code block converting the aArray elemnet to value for
               comparation with Get:VarGet(). default is {|e|e} - no
               conversion direct compare
lEmptyAllowed: if true the valid data for Get:VarGet is the result of
               function Empty(Get:VarGet()), else the Get:VarGet() value
               must be in aArray.

Return value:
~~~~~~~~~~~~~
true  if the value is valid
false if the value is not valid.

Remarks:
~~~~~~~~
Tato funkcia pouziva object vytvoreny z triedy Choice.

Source code is in file  Object3.prg

See Also: DbfValid Choice
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson